# these commands are utility commands for the mandelbulber project
#
# if not otherwise noted these commands are meant to be executed 
# in the mandelbulber root directory (mandelbulber2)


### language system ###
# language system requires language tools of qt
# updating of ts files (first step before editing language entries)
lupdate qt_data/*.ui -ts language/qt_data_*.ts
lupdate Debug/mandelbulber.pro

# modify language files
linguist language/[language to edit].ts

# generation of binary files used by the program
lrelease language/[language to generate].ts

### optimization of images ###
# optimize jpg images and compress to 80%
find . -name '*.jp*g' -print0 | xargs -0 jpegoptim -ftn -m80

# optimize png images
find . -name '*.png' -print0 | xargs -0 optipng -o7

# new icons
# icons are part of the tango theme, in order to add new icons
# the used icons need to be shipped for non linux systems
# in order to do so:
# 1. get the tango icon pack from here
# --> http://tango.freedesktop.org/Tango_Icon_Library
# 2. get the desired icon from scalable folder and add it to qt/icons
# 3. add reference analog to other system icons in qt/icons.qrc
# 4. use icon analogue to other icons in ui file
# 5. add svg file to git
